package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.EnrollRoyaltySet;
import com.xmy.cultivate.mapper.EnrollRoyaltySetMapper;
import com.xmy.cultivate.service.IEnrollRoyaltySetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 招生提成设置 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-09-11
 */
@Service
public class EnrollRoyaltySetServiceImpl extends ServiceImpl<EnrollRoyaltySetMapper, EnrollRoyaltySet> implements IEnrollRoyaltySetService {
    @Autowired
    EnrollRoyaltySetMapper enrollRoyaltySetMapper;

    @Override
    public Integer countByDate(LocalDate startDate, LocalDate endDate, Integer level) {
        return enrollRoyaltySetMapper.countByDate(startDate, endDate, level);
    }

    @Override
    public Integer countAppointSchoolByDate(LocalDate startDate, LocalDate endDate, Long schoolId) {
        return enrollRoyaltySetMapper.countAppointSchoolByDate(startDate, endDate, schoolId);
    }

    @Override
    public IPage<EnrollRoyaltySet> getAll(IPage<?> page, String startDate, String endDate, String schoolId, String level, String status) {
        return enrollRoyaltySetMapper.getAll(page, startDate, endDate, schoolId, level, status);
    }


}
